.class Lcom/xiaomi/notes/NoteEditActivity$1;
.super Ljava/lang/Object;
.source "NoteEditActivity.java"

# interfaces
.implements Landroid/view/View$OnTouchListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/xiaomi/notes/NoteEditActivity;->initListener()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/xiaomi/notes/NoteEditActivity;


# direct methods
.method constructor <init>(Lcom/xiaomi/notes/NoteEditActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 294
    iput-object p1, p0, Lcom/xiaomi/notes/NoteEditActivity$1;->this$0:Lcom/xiaomi/notes/NoteEditActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 3
    .parameter "v"
    .parameter "event"

    .prologue
    const/4 v2, 0x0

    .line 297
    iget-object v0, p0, Lcom/xiaomi/notes/NoteEditActivity$1;->this$0:Lcom/xiaomi/notes/NoteEditActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteEditActivity;->access$000(Lcom/xiaomi/notes/NoteEditActivity;)I

    move-result v0

    const/4 v1, -0x1

    if-le v0, v1, :cond_0

    .line 298
    sget-object v0, Lcom/xiaomi/notes/NoteEditActivity;->context:Lcom/xiaomi/notes/NoteEditActivity;

    invoke-virtual {v0}, Lcom/xiaomi/notes/NoteEditActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x10

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 301
    :cond_0
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 311
    :goto_0
    return v2

    .line 303
    :pswitch_0
    iget-object v0, p0, Lcom/xiaomi/notes/NoteEditActivity$1;->this$0:Lcom/xiaomi/notes/NoteEditActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteEditActivity;->access$100(Lcom/xiaomi/notes/NoteEditActivity;)I

    move-result v0

    packed-switch v0, :pswitch_data_1

    goto :goto_0

    .line 306
    :pswitch_1
    iget-object v0, p0, Lcom/xiaomi/notes/NoteEditActivity$1;->this$0:Lcom/xiaomi/notes/NoteEditActivity;

    invoke-virtual {v0, v2}, Lcom/xiaomi/notes/NoteEditActivity;->setState(I)V

    goto :goto_0

    .line 301
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
    .end packed-switch

    .line 303
    :pswitch_data_1
    .packed-switch 0x1
        :pswitch_1
        :pswitch_1
    .end packed-switch
.end method
